-
Notifications
You must be signed in to change notification settings - Fork 9
[ref:cargo-polishing] Cargo polishing #512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LordIdra
commented
Dec 31, 2025
- Add vanilla block compatibility to cargo extractor and inserter
- Update all existing blocks to be logistics compatible
- Abstract a lot of inserter/extractor logic out into a new interactor class (it was getting a bit much with the new logic for vanilla blocks)
- Allow selecting the target inventory in extractors/inserters
- Allow setting a filter (and blacklist/whitelist)
- Adds a buffer to cargo extractor (but not inserter) - this is simpler for the filtering logic and drastically reduces the number of comparisons needed when moving items between e.g. two double chests
|
Unable to transport items into DecoratedPot |
QQ202612-215938.mp4When transport items from containers, the redstone state didn't get updated. |
|
Unable to transport books into lectern |
Intentional, not supported
Intentional, not supported |
Unable to play the video but I think you're using a chiselled bookshelf there to test? Chiselled bookshelves are a bit screwed atm because of paper, not because of pylon, so not surprised that this is an issue. I have tested with other containers and redstone state updates just fine |
Also tested hopper
This comment I changed yesterday but didn't change probably due to lag. |
Confirmed. That's really weird. I think this will need manual state access in the same way as the crafter issue will require... I don't see an easy way to fix this and it's niche enough that I'll just open an issue for now and come back to it later |
| addCargoLogisticGroup(face, targetLogisticGroup); | ||
| } | ||
| // Slight hack: Set the logistic group to 'none' (which should not exist) | ||
| addCargoLogisticGroup(face, targetLogisticGroup == null ? "none" : targetLogisticGroup); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be safe you can just use the empty string, but this is a nit
| if (!targetGroups.containsKey(targetLogisticGroup)) { | ||
| setTargetLogisticGroup(null); | ||
| } | ||
|
|
||
| // Find new logistic group if group does not exist | ||
| if (targetLogisticGroup == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case where the group does not exist but is nonnull it won't automatically find a new one
|
|
||
| @Override | ||
| public @NotNull Gui createGui() { | ||
| // Not actually used, just provided for easy inventory serialization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Umm you can serialize inventories without a gui you know that right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keyword 'easy' (and virtual inv serializer was not in at the time) - but it doesn't matter regardless since inventory serialization will be changed





